﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true"
    CodeFile="MemberJnr.aspx.cs" Inherits="MemberInfo_MemberJnr" CodeFileBaseClass="Frame.Pages.ActionInfomationEditBasePage" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <h1 class="DemoTitle">
        会员纪念日
    </h1>
    <a href="MemberEdit.aspx">
            <h3>
                返回会员管理页</h3>
        </a>
    <div id="DemoArea">
        <dx:ASPxRoundPanel ID="MainRoundPanel" runat="server" Width="100%" 
            HeaderText="操作区" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
            GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                PaddingTop="10px" />
            <HeaderStyle>
            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                PaddingTop="3px" />
            </HeaderStyle>
            <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True"></dx:PanelContent>
</PanelCollection>
        </dx:ASPxRoundPanel>
        <dx:ASPxGridView ID="gridView" runat="server" Width="100%" 
            AutoGenerateColumns="False" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" DataSourceID="LSMDSourceMainMemberJnr" 
            oncelleditorinitialize="gridView_CellEditorInitialize" 
            onrowinserting="gridView_RowInserting" KeyFieldName="hybm" >
            <Columns>
                <dx:GridViewDataTextColumn Caption="会员编码" FieldName="hybm" Name="t_hybm" 
                    ShowInCustomizationForm="True" VisibleIndex="0" Width="150px" 
                    ReadOnly="True">
                    <PropertiesTextEdit Width="150px">
                        <ValidationSettings>
                            <RequiredField IsRequired="True" />
                        </ValidationSettings>
                    </PropertiesTextEdit>
                    <EditFormSettings Visible="True" />
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataComboBoxColumn Caption="纪念日类型" FieldName="jnrlx" Name="t_jnrlx" 
                    ShowInCustomizationForm="True" VisibleIndex="1" Width="150px">
                    <PropertiesComboBox Spacing="0" ValueType="System.String" Width="150px">
                        <Items>
                            <dx:ListEditItem Text="生日" Value="S" />
                            <dx:ListEditItem Text="结婚纪念日" Value="J" />
                            <dx:ListEditItem Text="情人节" Value="Q" />
                        </Items>
                        <ValidationSettings>
                            <RequiredField IsRequired="True" />
                        </ValidationSettings>
                    </PropertiesComboBox>
                    <EditFormSettings Visible="True" />
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataMemoColumn Caption="说明" FieldName="sm" Name="t_sm" 
                    VisibleIndex="2">
                    <PropertiesMemoEdit Height="40px" Width="380px">
                        <ValidationSettings>
                            <RequiredField IsRequired="True" />
                        </ValidationSettings>
                    </PropertiesMemoEdit>
                    <EditFormSettings ColumnSpan="2" Visible="True" />
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataMemoColumn>
                <dx:GridViewDataTimeEditColumn Caption="纪念日" FieldName="jnr" Name="t_jnr" 
                    ShowInCustomizationForm="True" VisibleIndex="3" Width="200px">
                    <PropertiesTimeEdit DisplayFormatString="t" EditFormat="Date" Spacing="0" 
                        Width="150px">
                        <ValidationSettings>
                            <RequiredField IsRequired="True" />
                        </ValidationSettings>
                    </PropertiesTimeEdit>
                    <EditFormSettings Visible="True" />
                    <EditCellStyle HorizontalAlign="Left">
                    </EditCellStyle>
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewDataTimeEditColumn>
            </Columns>
            <SettingsPager SEOFriendly="Enabled">
            </SettingsPager>
            <SettingsEditing Mode="PopupEditForm" 
                PopupEditFormHorizontalAlign="WindowCenter" PopupEditFormModal="True" 
                PopupEditFormVerticalAlign="WindowCenter" PopupEditFormWidth="400px" />
            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                CssPostfix="Office2010Blue">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <StylesPager>
                <PageNumber ForeColor="#3E4846">
                </PageNumber>
                <Summary ForeColor="#1E395B">
                </Summary>
            </StylesPager>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
        </dx:ASPxGridView>
        <dx:LinqServerModeDataSource ID="LSMDSourceMainMemberJnr" runat="server" 
            ContextTypeName="DAL.DataClassesDataContext" EnableDelete="True" 
            EnableInsert="True" EnableUpdate="True" TableName="css_hydj_jnr" />
    </div>
</asp:Content>
